import request from '@/utils/request'

// 查询书体欣赏列表
export function listGraphy(query) {
  return request({
    url: '/stylegraphy/graphy/list',
    method: 'get',
    params: query
  })
}

// 查询书体欣赏详细
export function getGraphy(id) {
  return request({
    url: '/stylegraphy/graphy/' + id,
    method: 'get'
  })
}

// 新增书体欣赏
export function addGraphy(data) {
  return request({
    url: '/stylegraphy/graphy',
    method: 'post',
    data: data
  })
}

// 修改书体欣赏
export function updateGraphy(data) {
  return request({
    url: '/stylegraphy/graphy',
    method: 'put',
    data: data
  })
}

// 删除书体欣赏
export function delGraphy(id) {
  return request({
    url: '/stylegraphy/graphy/' + id,
    method: 'delete'
  })
}
